<!--学生-学期成绩-->
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>学生成绩管理系统</title>
    <link rel="icon" type="image/png" href="/assets/img/学籍管理.svg">
    <link href="asserts/css/bootstrap.min.css" th:href="@{/webjars/bootstrap/4.0.0/css/bootstrap.css}" rel="stylesheet">
    <link href="/assets/css/dashboard.css"  rel="stylesheet">
    <style type="text/css">
        @-webkit-keyframes chartjs-render-animation {
            from {
                opacity: 0.99
            }
            to {
                opacity: 1
            }
        }
        @keyframes chartjs-render-animation {
            from {
                opacity: 0.99
            }
            to {
                opacity: 1
            }
        }
        .chartjs-render-monitor {
            -webkit-animation: chartjs-render-animation 0.001s;
            animation: chartjs-render-animation 0.001s;
        }
    </style>
</head>

<body>
<!--引入topbar-->
<div th:replace="bar/stubar::topbar"></div>
<div class="container-fluid">
    <div class="row">
        <!--引入侧边栏-->
        <div th:replace="bar/stubar::#sidebar(activeUri='resultss')"></div>
        <main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">
            <h2>
                <a style="float: right;background-color: #80bdff;border-color: #b8daff;margin-top: 30px" class="btn btn-outline-secondary" href="" th:href="@{/stu/toresdmin/1}">返回全学期总成绩页面</a>
            </h2>
            <form method="get" th:action="@{/stu/selectResByTerm/1}" >
                <div class="input-group mb-3" style="width: 500px;margin-left: 250px;margin-top: 30px">
                    <input type="text" class="form-control"  name="resTerm" placeholder="按学期查询成绩，请输入学期（样例：2021-2022-1）" aria-label="请输入学期例：（2020-1）" aria-describedby="button-addon2">
                    <div class="input-group-append" >
                        <button  class="btn btn-outline-secondary" type="submit" id="button-addon2">查询</button>
                    </div>
                </div>
            </form>
            <div class="table-responsive" style="margin-top: 30px;text-align: center;margin-left: 250px">
                <table class="table table-striped table-sm" style="width: 500px">
                    <thead>
                    <tr style="color: #007bff;">
                        <th width="200px">课程名</th>
                        <th width="150px">学期</th>
                        <th>成绩</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr th:each="res:${pageInfo.list}" th:if="res!=null" >
                        <td th:text="${res.subName}"></td>
                        <td th:text="${res.resTerm}"></td>
                        <td th:text="${res.resNum}"></td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <!--分页信息-->
            <nav aria-label="Page navigation example" >
                <ul class="pagination justify-content-center"  >
                    <li class="page-item"><a class="page-link" href="#" th:href="@{'/stu/selectResByTerm/1?resTerm='+${resTerm}}" th:style="'font-weight:bold;background: #b8daff;'">首页</a></li>
                    <li class="page-item" th:classappend="${pageInfo.hasPreviousPage}?'':' disabled'">
                        <a class="page-link" href="#" th:href="@{'/stu/selectResByTerm/'+${pageInfo.pageNum-1}+'?resTerm='+${resTerm}}" tabindex="-1" aria-disabled="true"><svg t="1719552400272" class="icon" viewBox="0 0 1137 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2171" width="16" height="16"><path d="M534.721393 18.805127a93.519358 93.519358 0 0 1 56.885254-18.772134 99.890507 99.890507 0 0 1 102.393459 97.273786v97.842638a49.14886 49.14886 0 0 0 45.508203 48.921318h301.491849A98.240835 98.240835 0 0 1 1137.705091 341.344521v341.311527a98.240835 98.240835 0 0 1-96.704933 97.273785H739.508309a49.14886 49.14886 0 0 0-45.508203 48.921319v97.842638A99.890507 99.890507 0 0 1 591.606647 1023.967575a93.519358 93.519358 0 0 1-56.885254-18.772134L34.131153 598.465871a126.569691 126.569691 0 0 1 0-172.931173z" fill="#b8daff" p-id="2172"></path></svg></a>
                    </li>
                    <li class="page-item"  th:each="page_Num:${pageInfo.navigatepageNums}" >
                        <a class="page-link"  th:text="${page_Num}" th:href="@{'/stu/selectResByTerm/'+${page_Num}+'?resTerm='+${resTerm}}"  th:if="${page_Num}==${pageInfo.pageNum}" th:style="'font-weight:bold;background: #b8daff;'">1</a>
                        <a class="page-link"  th:text="${page_Num}" th:href="@{'/stu/selectResByTerm/'+${page_Num}+'?resTerm='+${resTerm}}"  th:if="${page_Num}!=${pageInfo.pageNum}" >1</a>
                    </li>
                    <li class="page-item" th:classappend="${pageInfo.hasNextPage}?'':' disabled'">
                        <a class="page-link" href="#" th:href="@{'/stu/selectResByTerm/'+${pageInfo.pageNum+1}+'?resTerm='+${resTerm}}"><svg t="1719552659907" class="icon" viewBox="0 0 1137 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2558" width="16" height="16"><path d="M602.983698 18.805127a93.519358 93.519358 0 0 0-56.885254-18.772134 99.890507 99.890507 0 0 0-102.393458 97.273786v97.842638a49.14886 49.14886 0 0 1-45.508204 48.921318H96.704933A98.240835 98.240835 0 0 0 0 341.344521v341.311527a98.240835 98.240835 0 0 0 96.704933 97.273785H398.196782a49.14886 49.14886 0 0 1 45.508204 48.921319v97.842638A99.890507 99.890507 0 0 0 546.098444 1023.967575a93.519358 93.519358 0 0 0 56.885254-18.772134l500.59024-406.72957a126.569691 126.569691 0 0 0 0-172.931173z" fill="#b8daff" p-id="2559"></path></svg></a>
                    </li>
                    <li class="page-item"><a class="page-link" href="#" th:href="@{'/stu/selectResByTerm/'+${pageInfo.pages}+'?resTerm='+${resTerm}}" th:style="'font-weight:bold;background: #b8daff;'">尾页</a></li>
                </ul>
            </nav>
        </main>
    </div>
</div>

<script type="text/javascript" src="asserts/js/jquery-3.2.1.slim.min.js" th:src="@{/webjars/jquery/3.3.1/jquery.js}"></script>
<script src="https://unpkg.com/@popperjs/core@2"></script>
<script type="text/javascript" src="asserts/js/bootstrap.min.js" th:src="@{/webjars/bootstrap/4.0.0/js/bootstrap.js}"></script>
<script type="text/javascript" src="asserts/js/feather.min.js" th:src="@{/asserts/js/feather.min.js}"></script>
<script>
    feather.replace()
</script>
</body>
</html>